<?php
require_once 'config.php';
require_once 'function.php';
require_once 'class/Mysql.class.php';

$db = new Mysql();

//通用替换
function get_sql(){

	$sql_arr = array();
	$sql_arr[] = "update product set product_name = replace(product_name,'(português)','')";
	$sql_arr[] = "update product set product_name = replace(product_name,'(portuguese)','')";
	return $sql_arr;
}


$sqls = get_sql();

foreach( $sqls as $sql ){
	$db->query( $sql );
}


echo '去掉公共产品名中的(português)成功！';